 package com.lj.mcore.entity;



 import com.lj.mcore.domain.IdEntity;
 import jakarta.persistence.*;

 import java.math.BigDecimal;
 import java.util.ArrayList;
 import java.util.List;


 @Entity
 @Table(name="shopping_storeclass")
 public class StoreClass extends IdEntity
 {
   private String className;
   private int sequence;
 
   @ManyToOne(fetch= FetchType.LAZY)
   private StoreClass parent;
 
   @OneToMany(mappedBy="parent")
   private List<StoreClass> childs = new ArrayList();
   private int level;
 
   @Column(precision=4, scale=1)
   private BigDecimal description_evaluate;
 
   @Column(precision=4, scale=1)
   private BigDecimal service_evaluate;
 
   @Column(precision=4, scale=1)
   private BigDecimal ship_evaluate;

   @ManyToOne(fetch = FetchType.LAZY)
   Store store;

   @ManyToOne(fetch = FetchType.LAZY)
   Promo promo;
   /**
    * 1 显示
    * 0 不显示
    */
   @Column(columnDefinition="int default 1")
   int display;

   public int getDisplay() {
     return display;
   }

   public void setDisplay(int display) {
     this.display = display;
   }

   public Store getStore() {
     return store;
   }

   public void setStore(Store store) {
     this.store = store;
   }

   public Promo getPromo() {
     return promo;
   }

   public void setPromo(Promo promo) {
     this.promo = promo;
   }

   public BigDecimal getDescription_evaluate()
   {
     return this.description_evaluate;
   }
 
   public void setDescription_evaluate(BigDecimal description_evaluate) {
     this.description_evaluate = description_evaluate;
   }
 
   public BigDecimal getService_evaluate() {
     return this.service_evaluate;
   }
 
   public void setService_evaluate(BigDecimal service_evaluate) {
     this.service_evaluate = service_evaluate;
   }
 
   public BigDecimal getShip_evaluate() {
     return this.ship_evaluate;
   }
 
   public void setShip_evaluate(BigDecimal ship_evaluate) {
     this.ship_evaluate = ship_evaluate;
   }
 
   public String getClassName() {
     return this.className;
   }
 
   public void setClassName(String className) {
     this.className = className;
   }
 
   public int getSequence() {
     return this.sequence;
   }
 
   public void setSequence(int sequence) {
     this.sequence = sequence;
   }
 
   public StoreClass getParent() {
     return this.parent;
   }
 
   public void setParent(StoreClass parent) {
     this.parent = parent;
   }
 
   public List<StoreClass> getChilds() {
     return this.childs;
   }
 
   public void setChilds(List<StoreClass> childs) {
     this.childs = childs;
   }
 
   public int getLevel() {
     return this.level;
   }
 
   public void setLevel(int level) {
     this.level = level;
   }
 }



 
 